package com.azier.kapacitor.exception;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/8/23 16:57
 * 3
 */
public class KapacitorException extends Exception {

    public KapacitorException(String massage) {
        super(massage);
    }

    @Override
    public String getMessage(){
        String massage = super.getMessage();
        if("no task exists".equals(massage)){
            return "符合要求的任务不存在";
        }

        return massage;
    }
}
